batch_size=1
soc_version=Ascend310P3
onnx_path=./decoder_sim.onnx
output_path=./dynamic_decoder_bs${batch_size}

atc --model=${onnx_path} --framework=5 --output=${output_path} --input_format=ND \
--input_shape_range="encoder_out:[${batch_size},16~256,512];encoder_out_lens:[${batch_size}];hyps_pad_sos_eos:[${batch_size},10,1~64];hyps_lens_sos:[${batch_size},10];r_hyps_pad_sos_eos:[${batch_size},10,1~64];ctc_score:[${batch_size},10]" --log=error \
--soc_version=${soc_version}